package com.example.management.system.dao

import com.example.management.system.domain.UserDO
import org.apache.ibatis.annotations.Mapper

/**
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 09:45:11
 */
@Mapper
interface UserDao {

    operator fun get(userId: Long?): UserDO

    fun list(map: Map<String, Any>): List<UserDO>

    fun count(map: Map<String, Any>): Int

    fun save(user: UserDO): Int

    fun update(user: UserDO): Int

    fun remove(userId: Long?): Int

    fun batchRemove(userIds: Array<Long>): Int

    fun listAllDept(): Array<Long>

}
